/*
 * @Author: Sakura
 * @Date: 2023-08-21 10:28:23
 * @LastEditors: Sakura
 * @LastEditTime: 2023-08-21 11:56:31
 * @Description: 
 */
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [react()],
  base: "./",  //打包路径
  resolve: {
    alias: {
      '@': path.resolve(__dirname, './src') //设置别名
    }
  },
  server: {
    hmr:true,    // 禁止本地热更新
  }
})
